package com.github.od.constants;

/**
 * 公共常量
 * 
 * @author xieweikun
 * @version 2017年11月15日 下午8:41:48
 */
public class CommonConstants {
	// 全局异常编码
	public static final Integer EX_TOKEN_ERROR_CODE = 40101;
	public static final Integer EX_USER_INVALID_CODE = 40102;
	public static final Integer EX_CLIENT_INVALID_CODE = 40131;
	public static final Integer EX_CLIENT_FORBIDDEN_CODE = 403;
	public static final Integer EX_OTHER_CODE = 500;
	
	// 全局上下文编码
	public static final String CONTEXT_KEY_USER_ID = "currentUserId";
	public static final String CONTEXT_KEY_USER_NAME = "currentUserName";
	public static final String CONTEXT_KEY_NAME = "currentName";
	
	// JWT编码
	public static final String JWT_KEY_USER_ID = "userId";
	public static final String JWT_KEY_NAME = "name";
	
}
